package cn.planewar;

import javax.swing.*;
import java.util.Random;

public class LittleHostilityPlane extends SkyObject implements EnemyScore{
    public LittleHostilityPlane(){
        super(48,50);
    }
    public void step(){
        this.setY(getY()+getSpeed());
    }
    public ImageIcon getImage(){
        if (getObjstate()==0){
            return Image.airplane0;
        } else {
            return Image.airplane1;
        }
    }
    public int getScore(){
        return 1;
    }
}
